package com.inool.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("user")
@NoArgsConstructor
@Data
public class User {
    @TableId()
    private String userId;
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
    @TableField("role")
    private String role; 

    public User(String userId,String username, String password, String role) {
     this.userId = userId;
     this.username = username;
     this.password = password;
     this.role = role;   
    }
}
